package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkViphallPricelogMapper;
import com.ktgj.service.domain.ContractLinkViphallPricelog;
import com.ktgj.service.service.IContractLinkViphallPricelogService;

/**
 * 贵宾厅价格记录			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkViphallPricelogServiceImpl implements IContractLinkViphallPricelogService 
{
    @Autowired
    private ContractLinkViphallPricelogMapper contractLinkViphallPricelogMapper;

    /**
     * 查询贵宾厅价格记录			

     * 
     * @param operationlogId 贵宾厅价格记录			
ID
     * @return 贵宾厅价格记录			

     */
    @Override
    public ContractLinkViphallPricelog selectContractLinkViphallPricelogById(Long operationlogId)
    {
        return contractLinkViphallPricelogMapper.selectContractLinkViphallPricelogById(operationlogId);
    }

    /**
     * 查询贵宾厅价格记录			
列表
     * 
     * @param contractLinkViphallPricelog 贵宾厅价格记录			

     * @return 贵宾厅价格记录			

     */
    @Override
    public List<ContractLinkViphallPricelog> selectContractLinkViphallPricelogList(ContractLinkViphallPricelog contractLinkViphallPricelog)
    {
        return contractLinkViphallPricelogMapper.selectContractLinkViphallPricelogList(contractLinkViphallPricelog);
    }

    /**
     * 新增贵宾厅价格记录			

     * 
     * @param contractLinkViphallPricelog 贵宾厅价格记录			

     * @return 结果
     */
    @Override
    public int insertContractLinkViphallPricelog(ContractLinkViphallPricelog contractLinkViphallPricelog)
    {
        contractLinkViphallPricelog.setCreateTime(DateUtils.getNowDate());
        return contractLinkViphallPricelogMapper.insertContractLinkViphallPricelog(contractLinkViphallPricelog);
    }

    /**
     * 修改贵宾厅价格记录			

     * 
     * @param contractLinkViphallPricelog 贵宾厅价格记录			

     * @return 结果
     */
    @Override
    public int updateContractLinkViphallPricelog(ContractLinkViphallPricelog contractLinkViphallPricelog)
    {
        contractLinkViphallPricelog.setUpdateTime(DateUtils.getNowDate());
        return contractLinkViphallPricelogMapper.updateContractLinkViphallPricelog(contractLinkViphallPricelog);
    }

    /**
     * 批量删除贵宾厅价格记录			

     * 
     * @param operationlogIds 需要删除的贵宾厅价格记录			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkViphallPricelogByIds(Long[] operationlogIds)
    {
        return contractLinkViphallPricelogMapper.deleteContractLinkViphallPricelogByIds(operationlogIds);
    }

    /**
     * 删除贵宾厅价格记录			
信息
     * 
     * @param operationlogId 贵宾厅价格记录			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkViphallPricelogById(Long operationlogId)
    {
        return contractLinkViphallPricelogMapper.deleteContractLinkViphallPricelogById(operationlogId);
    }
}
